// index.js
// 获取应用实例

const app = getApp()
Page({
  
  data: {
    choose: "",
    userInfo: {},
    hasUserInfo: false,
    canIUseGetUserProfile: false,
    id : null,
    // 获取首页健康数据,图片了，链接
    healthData : [
      {
        id : 1,
        knowledge : "诱发腰间盘产生的因素的发生尽快发过来静安寺附近阿三",
        URL : 'http://www.baidu.com',
        Imageurl : "https://img.tukuppt.com/ad_preview/00/05/27/5c98d4374bcd8.jpg!/fw/780"
      },
      {
        id : 2,
        knowledge : "打卡说明",
        URL : 'http://www.baidu.com',
        Imageurl : "https://img.tukuppt.com/ad_preview/00/05/27/5c98d4374bcd8.jpg!/fw/780"
      },
    ]
  
  },
  Change(e){
    let choose = e.detail.value
   this.setData({
    choose
   })
  },
  
  shownews(options){
    getApp().globalData.newsid = options.currentTarget.dataset.gettitleindex;
    wx.navigateTo({
      url: '/pages/shownews/shownews',
      success: (result) => {   
         
      },
      fail: () => {   
      },
      complete: () => {}
    }); 
  },
 



})


